<?php
/**
 * Created by PhpStorm.
 * User: zhangjincheng
 * Date: 16-7-14
 * Time: 下午1:58
 */

/**
 * 选择数据库环境
 */
$config['redis']['enable'] = true;
$config['redis']['active'] = 'cache';

/**
 * 本地环境
 */
$config['redis']['local']['ip'] = '192.168.20.231';
$config['redis']['local']['port'] = 6379;
$config['redis']['local']['select'] = 1;
$config['redis']['local']['password'] = '';

/**
 * 本地环境2
 */
$config['redis']['local2']['ip'] = '192.168.20.243';
$config['redis']['local2']['port'] = 6379;
$config['redis']['local2']['select'] = 0;
$config['redis']['local2']['password'] = 'wanglibao_ylb.com';

/**
 * for Lavarel-Cache
 */
$config['redis']['cache']['ip'] = env('REDIS_HOST', 'localhost');
$config['redis']['cache']['port'] = env('REDIS_PORT', 6379);
$config['redis']['cache']['select'] = env('REDIS_DB', 0);
$config['redis']['cache']['password'] = env('REDIS_PASSWORD', null);

$config['redis']['asyn_max_count'] = 10;
/**
 * 最终的返回，固定写这里
 */
return $config;
